package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 编码规则对象 md_code_config
 *
 * @author cell
 * @date 2023-10-18
 */
@ApiModel(value = "编码规则对象")
public class CodeConfig
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long codeId;

    /** 编码对应业务名称 */
    @Excel(name = "编码对应业务名称")
    private String codeName;

    /** 编码前缀规则 */
    @Excel(name = "编码前缀规则")
    private String codeRule;

    /** 是否加入时间（0不加入1加入） */
    @Excel(name = "是否加入时间", readConverterExp = "0=不加入1加入")
    private String codeTime;

    /** 补全数字位数 */
    @Excel(name = "补全数字位数")
    private int codeNumber;

    public void setCodeId(Long codeId)
    {
        this.codeId = codeId;
    }

    public Long getCodeId()
    {
        return codeId;
    }
    public void setCodeName(String codeName)
    {
        this.codeName = codeName;
    }

    public String getCodeName()
    {
        return codeName;
    }
    public void setCodeRule(String codeRule)
    {
        this.codeRule = codeRule;
    }

    public String getCodeRule()
    {
        return codeRule;
    }
    public void setCodeTime(String codeTime)
    {
        this.codeTime = codeTime;
    }

    public String getCodeTime()
    {
        return codeTime;
    }
    public void setCodeNumber(int codeNumber)
    {
        this.codeNumber = codeNumber;
    }

    public int getCodeNumber()
    {
        return codeNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("codeId", getCodeId())
            .append("codeName", getCodeName())
            .append("codeRule", getCodeRule())
            .append("codeTime", getCodeTime())
            .append("codeNumber", getCodeNumber())
            .toString();
    }
}
